package com.nebula.maven.springbootmebula.nebula;

import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NebulaGraphService {

    @Autowired
    private NebulaTemplate nebulaTemplate;

    public JSONObject executeQuery(String query) throws Exception {
        return nebulaTemplate.executeJson(query);
    }
}
